import request from '@/utils/request';


export function editOwnExp(data){
  return request({
    url:'/comprehensive/experience/editOwnExp',
    method: 'POST',
    data
  });
}


export function deleteOwnExp(id){
  return request({
    url:`/comprehensive/experience/deleteOwnExp/${id}`,
    method:"post"
  });
}

export function addOwnExp(data){
  return request({
    url:'/comprehensive/experience/addOwnExp',
    method:"post",
    data
  });
}


export function getOwnExp(){
  return request({
    url:"/comprehensive/experience/getOwnExp",
    method:"get"
  });
}


// 查询教育经历列表
export function listExperience(query) {
  return request({
    url: '/comprehensive/experience/list',
    method: 'get',
    params: query
  })
}

// 查询教育经历详细
export function getExperience(eduId) {
  return request({
    url: '/comprehensive/experience/' + eduId,
    method: 'get'
  })
}

// 新增教育经历

export function addExperience(data) {
  return request({
    url: '/comprehensive/experience/add',
    method: 'post',
    data: data
  })
}

// 修改教育经历

export function updateExperience(data) {
  return request({
    url: '/comprehensive/experience/update',
    method: 'post',
    data: data
  })
}

// 删除教育经历

export function delExperience(eduId) {
  return request({
    url: '/comprehensive/experience/' + eduId,
    method: 'post'
  })
}
